home *** CD-ROM | disk | FTP | other *** search
- function loadImage(mc, node, extrapath)
- {
- var _loc3_ = extrapath;
- if(_loc3_ == null)
- {
- _loc3_ = "";
- }
- var strDefaultPath = Tardis.ASSETS_FOLDER + "images/" + Tardis.ActiveSection.id + "/";
- var _loc1_ = node.firstChild.nodeValue;
- var _loc2_ = node.attributes.path;
- if(_loc2_ != null)
- {
- _loc1_ = _loc2_ + _loc1_;
- }
- else
- {
- _loc1_ = strDefaultPath + _loc3_ + _loc1_;
- }
- if(strPathPrefix == null)
- {
- strPathPrefix = "";
- }
- mc.loadMovie(strPathPrefix + _loc1_);
- }
- function addLink(mc)
- {
- Links[mc.link] = mc;
- }
- function getMCfromLink(Item)
- {
- var _loc1_ = Item;
- if(Links[_loc1_] == null)
- {
- var _loc2_ = [];
- while(_loc1_ != sideMenu.ItemHome)
- {
- _loc2_.unshift(_loc1_._name.split("_").pop());
- _loc1_ = _loc1_._parent._parent;
- }
- var _loc3_ = _loc2_.join("/");
- Links[_loc1_] = Links[_loc3_];
- }
- return Links[_loc1_];
- }
- function removeLinkListener()
- {
- Tardis.sideMenu.EB.removeListener(this);
- }
- function testEnabled(num)
- {
- if(num >= nodeData.childNodes.length)
- {
- this["mc_txt_" + num].btn.enabled = false;
- }
- }
- function txtOver(mc)
- {
- var _loc1_ = mc;
- _loc1_.gotoAndStop("over");
- temp.text = "num = " + _loc1_.num;
- _parent.preview.doOver(_loc1_.num);
- Tardis.sideMenu.doOver(_loc1_.link);
- }
- function txtOut(mc)
- {
- var _loc1_ = mc;
- _loc1_.gotoAndStop("off");
- _parent.preview.doOut(_loc1_.num);
- Tardis.sideMenu.doOut(_loc1_.link);
- }
- function txtUp(mc)
- {
- Tardis.sideMenu.doUp(mc.link);
- }
- function init()
- {
- var _loc2_ = Tardis.ActiveSection.id;
- var _loc1_ = Tardis.Colors;
- var strColor = _loc1_.getString(_loc2_);
- SECTION_COLOR = _loc1_.getHex(_loc2_);
- DEFAULT_COLOR = _loc1_.getHex("default");
- DEFAULT_COLOR50 = _loc1_.getHex("default50");
- THUMB_PATH = nodeData.attributes.thumbpath;
- play();
- }
- function clipInit(clip)
- {
- var _loc2_ = clip;
- num = _loc2_._name.split("_")[2];
- var _loc1_ = nodeData.childNodes[num];
- if(_loc1_ != null)
- {
- _loc2_.link = _loc1_.attributes.link;
- FONT_SIZE = _loc1_.attributes.fontsize;
- _loc2_.titleFF.htmlText = "<FONT SIZE=\"" + FONT_SIZE + "\" COLOR=\"" + DEFAULT_COLOR + "\">" + _loc1_.byName("title").getText() + " </FONT>";
- }
- }
- function doOver(num)
- {
- var _loc1_ = this["mc_txt_" + num];
- _loc1_.gotoAndStop("over");
- _parent.preview.doOver(_loc1_.num);
- }
- function doOut(num)
- {
- var _loc1_ = this["mc_txt_" + num];
- _loc1_.gotoAndStop("off");
- _parent.preview.doOut(_loc1_.num);
- }
- function doPlaylistTrackHilite(mcToHilite, mcToLolite)
- {
- var _loc1_ = mcToHilite;
- var _loc2_ = mcToLolite;
- if(_loc1_ == null)
- {
- _loc1_ = hiliteMc;
- if(loliteMc != null)
- {
- _loc2_ = loliteMc;
- }
- }
- else
- {
- hiliteMc = _loc1_;
- loliteMc = _loc2_;
- }
- if(_loc2_)
- {
- _loc2_.trackPlaying = false;
- txtOut(_loc2_);
- }
- if(_loc1_)
- {
- _loc1_.trackPlaying = true;
- txtOver(_loc1_);
- }
- }
- blnHasPreview = 1;
- var hiliteMc;
- var loliteMc;
- Links = {};
- Tardis.sideMenu.EB.addListener(this);
- stop();
- onReady();
- this.onUnload = function()
- {
- removeLinkListener();
- this.onUnload = null;
- };
-